package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
//@Inheritance(strategy= InheritanceType.JOINED)
public class SaleInquiry implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String saleInquiryDate;

    @ManyToOne
    private SaleLead saleLead;
    @OneToMany
    private Collection<LineItem> lineItems = new ArrayList<LineItem>();
    
   
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSaleInquiryDate() {
        return saleInquiryDate;
    }

    public void setSaleInquiryDate(String saleInquiryDate) {
        this.saleInquiryDate = saleInquiryDate;
    }

    public SaleLead getSaleLead() {
        return saleLead;
    }

    public void setSaleLead(SaleLead saleLead) {
        this.saleLead = saleLead;
    }

    public Collection<LineItem> getLineItems() {
        return lineItems;
    }

    public void setLineItems(Collection<LineItem> lineItems) {
       this.lineItems = lineItems;
    }
        
}
